using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using emp.ProcessFlow.SysManage;
using emp.Model.SysManage;

public partial class SysMenu_SysMenuTree : System.Web.UI.Page
{
    //update by jtao 2006.06.08
    protected void Page_Load(object sender, EventArgs e)
    {
        
        if (!IsPostBack)
        {
            SysMenuController iCon = new SysMenuController();
            //iCon.LeafImageUrl = "/pub/crm/images/ftv2doc.gif";
            //iCon.NodeImageUrl = "/pub/crm/images/ftv2folderclosed.gif";
            //iCon.CreateTreeView(MyTreeView);

            UserInfo myUserInfo = (UserInfo)HttpContext.Current.Session["USER_KEY"];
            iCon.createUserSysMenu(MyTreeView, myUserInfo.UserID);
        }/*
        
        if (!IsPostBack == true)
        {
            UserController usr = new UserController();
            if (usr.CheckLogon(lblScript))
            {
                SysMenuController iCon = new SysMenuController();
                iCon.LeafImageUrl = "../../pub/crm/images/ftv2doc.gif";
                iCon.NodeImageUrl = "../../pub/crm/images/ftv2folderclosed.gif";
                iCon.CreateTreeView(MyTreeView, usr.LogonName, usr.LogonPWD, true);
            }
        }*/
    }

}
